
#pragma once

const std::string RELOAD_CONFIG_FILE_NAME = "Reload.xml";

enum INFO_PROTOCOL_RELOAD
{
	INFO_PROTOCOL_RELOAD_START																	=10000,

	INFO_PROTOCOL_RELOAD_IPADDRESSPORT_UNKNOWN_TYPE												=10001,
	INFO_PROTOCOL_RELOAD_DESTINATIONDATA_UNKNOWN_TYPE											=10002,
	INFO_PROTOCOL_RELOAD_SIGNERIDENTITYVALUE_UNKNOWN_TYPE										=10003,
	INFO_PROTOCOL_RELOAD_PROBEINFORMATIONDATA_UNKNOWN_TYPE										=10004,
	INFO_PROTOCOL_RELOAD_ICECANDIDATE_UNKNOWN_TYPE												=10005,
	INFO_PROTOCOL_RELOAD_CONFIGUPDATEREQ_UNKNOWN_TYPE											=10006,
	INFO_PROTOCOL_RELOAD_FRAMEDMESSAGE_UNKNOWN_TYPE												=10007,
	INFO_PROTOCOL_RELOAD_CHORDUPDATE_UNKNOWN_TYPE												=10008,
	INFO_PROTOCOL_RELOAD_CHORDLEAVEDATA_UNKNOWN_TYPE											=10009,
	INFO_PROTOCOL_RELOAD_FIXEDHEADER_TOO_SMALL													=10010,
	INFO_PROTOCOL_RELOAD_RELOADPACKET_FORMAT_ERROR												=10011,
	INFO_PROTOCOL_RELOAD_CHECKRELOADPACKETINTEGRITY_FAIL										=10012,
	INFO_PROTOCOL_RELOAD_MSG_SILENTLY_DROP														=10013,
	INFO_PROTOCOL_RELOAD_NODEID_INVALID															=10014,
	INFO_PROTOCOL_RELOAD_TRANSACTIONMGR_TRANSACTIONID_NOT_EXIST									=10015,
	INFO_PROTOCOL_RELOAD_TRANSACTIONMGR_TRANSACTIONOPERATION_IS_NULL							=10016,
	INFO_PROTOCOL_RELOAD_RELOADPACKET_WRONG_OVERLAY												=10017,
	//INFO_PROTOCOL_RELOAD_DESTINATION_IN_VIALIST_IS_NOT_NODEID									=10018,
	//INFO_PROTOCOL_RELOAD_VIALIST_IS_EMPTY														=10019,
	INFO_PROTOCOL_RELOAD_ATTACH_IN_PROGRESS														=10020,
	INFO_PROTOCOL_RELOAD_UNEXPECTED_ATTACHSTATUS												=10021,
	INFO_PROTOCOL_RELOAD_JOINING_FORBIDDEN														=10022,
	INFO_PROTOCOL_RELOAD_UNKNOWN_KIND															=10023,
	INFO_PROTOCOL_RELOAD_WRONG_DATAMODEL														=10024,
	INFO_PROTOCOL_RELOAD_TOO_MANY_ELEMENTS_FOR_DATAMODEL_SINGLE									=10025,
	INFO_PROTOCOL_RELOAD_DATA_TOO_OLD															=10026,
	INFO_PROTOCOL_RELOAD_KINDID_USED_TWICE_IN_STOREREQ											=10027,
	INFO_PROTOCOL_RELOAD_RESOURCEID_NOT_RESPONSIBLE												=10028,
	INFO_PROTOCOL_RELOAD_REPLICA_GENERATIONCOUNTER_ZERO_IN_STOREREQ								=10029,
	INFO_PROTOCOL_RELOAD_GENERATIONCOUNTER_NOT_EQUAL_IN_STOREREQ								=10030,
	INFO_PROTOCOL_RELOAD_DATA_TOO_LARGE															=10031,
	INFO_PROTOCOL_RELOAD_UNKNOWN_DATAMODEL_TYPE													=10041,
	INFO_PROTOCOL_RELOAD_UNKNOWN_KINDS															=10042,
	INFO_PROTOCOL_RELOAD_KINDID_USED_TWICE_IN_FETCHREQ											=10043,
	INFO_PROTOCOL_RELOAD_DICTIONARYKEY_USED_TWICE_IN_FETCHREQ									=10044,
	INFO_PROTOCOL_RELOAD_ILLEGAL_ARRAYRANGE_IN_FETCHREQ											=10045,
	INFO_PROTOCOL_RELOAD_ARRAYRANGE_OVERLAPED_IN_FETCHREQ										=10046,
	INFO_PROTOCOL_RELOAD_TRANSACTION_NOT_SUCCESS												=10047,
	INFO_PROTOCOL_RELOAD_CONNECTION_CLOSED														=10048,
	INFO_PROTOCOL_RELOAD_OVERLAY_NOT_EXIST														=10049,
	INFO_PROTOCOL_RELOAD_JOINING_PEER_NOT_IN_CONNECTION_TABLE									=10050,
	INFO_PROTOCOL_RELOAD_UNEXPECTED_VOID_SUCCESSORS												=10051,
	INFO_PROTOCOL_RELOAD_FIXEDHEADER_NOT_BEGIN_WITH_RELOAD_TOKEN								=10052,
	INFO_PROTOCOL_RELOAD_DEBUG_CMD_NOT_SUCCESS													=10053,

	INFO_PROTOCOL_RELOAD_END																	=20000
};

enum ERROR_PROTOCOL_RELOAD
{
	ERROR_PROTOCOL_RELOAD_START																	=-10000,

	ERROR_PROTOCOL_RELOAD_PREPAREFORWARDINGHEADER_FAIL											=-10001,
	ERROR_PROTOCOL_RELOAD_IPADDRESS_INVALID														=-10002,
	ERROR_PROTOCOL_RELOAD_UNKNOWN_ATTACHSTATUS													=-10003,
	ERROR_PROTOCOL_RELOAD_NODEID_NOT_IN_CONNECTION_TABLE										=-10004,
	ERROR_PROTOCOL_RELOAD_CANNOT_SEND_ATTACHREQ_TO_SELF											=-10005,
	ERROR_PROTOCOL_RELOAD_CANNOT_CONNECT_TO_SELF												=-10006,
	ERROR_PROTOCOL_RELOAD_NODEID_NOT_CONSISTENT													=-10007,

	ERROR_PROTOCOL_RELOAD_END																	=-20000
};
